﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<#include "/pages/include/include.ftl" />
<@h.css href="/css/uc.css"/>
<@h.js src="/javascripts/public/myfile.js"/>
<#include "/pages/include/setlayout.ftl" />
<script type="text/javascript">
	var myfile=new myfile();
		$(function(){
			$("#navtab1").ligerTab({
				onBeforeSelectTabItem:function(TabID){
					if($('#tab').val()==TabID)
						return;
					$('#'+TabID).loading();
					window.location.href="?curTab="+TabID+"&status="+TabID;
				}
			});
			
			//all select
			$('#UNAPPROVE .allSelect').click(function(){
				myfile.checkUNAPPROVE($(this));
			});
			$('#FAVORITE .allSelect').click(function(){
				myfile.checkFAVORITE($(this));
			});
			//delete
			$('#delUnApprove').click(function(){
				myfile.delUnApprove();
			});
			$('#delFavorite').click(function(){
				myfile.delFavorite();
			});
		});
</script>
</head>

<body class="hdr">
<!-- button 2:"icon"
<a href="javascript:;" class="minibutton btn-download"><span><span class="icon"></span>Button With Icon</span></a>
 -->
<#assign menuId="myfile">
<div id="layout1" class="wrapper">
	
	<#include "/pages/person/myfile/file_menu.ftl" />
	
	<div position="center" title="我的文件">
		<div class="button" style="float:right;margin:20px 30px 10px;">
              <div class="left" >
                <div class="right" >
                  <input class="inputButton" type="button" id="" name="" value="上传共享" onclick="window.location='${contextPath}/myfile/myfile-gotoUpload.action'"/>
                </div>
              </div>
         </div>
		<div class="content-section">
			<div id="navtab1">
				<div id="APPROVE" tabid="APPROVE" <#if curTab='APPROVE'>lselected="true"</#if>  title="已发布" class="sList">
					<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<th class="sTh">文档名称</th>
							<th class="sTh">分类</th>
							<th class="sTh">浏览量</th>
							<th class="sTh">下载量</th>
							<th class="sTh">上传时间</th>
							<th class="sTh">操作</th>
						</tr>
					<#if filePage?exists>
					<#list filePage.result as a>
						<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
							<td class="sCell">
							<a class="f14" href="${contextPath}/myfile/myfile-showFile.action?fileId=${a.id?if_exists}" title="${a.fileName?if_exists} ">
							${a.fileName?if_exists} </a></td>
							<td class="sCell">${a.category?if_exists}</td>
							<td class="sCell">${a.browserSum?if_exists}</td>
							<td class="sCell">${a.downSum?if_exists}</td>
							<td class="sCell">${a.publishTime?if_exists}</td>
							<td class="sCell">
							<a class="op" href="${contextPath}/myfile/myfile-gotoEditFile.action?fileId=${a.id?if_exists}">编辑</a>
							</td>
						</tr>
					</#list>
					</#if>
					</table>
					<@s.component id="page" template="components/page.ftl"> 
							<@s.param name="page" value="%{filePage}" />
							<@s.param name="pageRange" value="%{pageRange}" />
							<@s.param name="param" value="%{action.param}" />
					</@s.component>
				</div>
				<div id="SUBMITTING" tabid="SUBMITTING" <#if curTab='SUBMITTING'>lselected="true"</#if> title="提交中" class="sList">
					<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<th class="sTh">文档名称</th>
							<th class="sTh">建议分类</th>
							<th class="sTh">文件夹</th>
							<th class="sTh">上传时间</th>
							<th class="sTh">状态</th>
						</tr>
					<#if filePage?exists>
					<#list filePage.result as a>
						<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
							<td class="sCell">
							<a class="f14" href="${contextPath}/myfile/myfile-showFile.action?fileId=${a.id?if_exists}" title="${a.fileName?if_exists} ">
							${a.fileName?if_exists} </a></td>
							<td class="sCell">${a.category?if_exists}</td>
							<td class="sCell">${a.folder?if_exists}</td>
							<td class="sCell">${a.uploadTime?if_exists}</td>
							<td class="sCell">${a.status?if_exists}</td>
						</tr>
					</#list>
					</#if>
					</table>
					<@s.component id="page" template="components/page.ftl"> 
							<@s.param name="page" value="%{filePage}" />
							<@s.param name="pageRange" value="%{pageRange}" />
							<@s.param name="param" value="%{action.param}" />
					</@s.component>
				</div>
				<div id="UNAPPROVE" tabid="UNAPPROVE" <#if curTab='UNAPPROVE'>lselected="true"</#if> title="未通过">
					<div class="action-div">
						<a id="delUnApprove" class="minibutton"><span>删除</span></a>
					</div>
					<div class="sList">
					<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<td class="sTh checkbox" ><input class="inputCheckbox allSelect" type="checkbox" id="" name="" /></td>
							<th class="sTh">文档名称</th>
							<th class="sTh">建议分类</th>
							<th class="sTh">文件夹</th>
							<th class="sTh">上传时间</th>
						</tr>
					<#if filePage?exists>
					<#list filePage.result as a>
						<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
							<td class="sCell" ><input class="inputCheckbox selectItem" type="checkbox" value="${a.id?if_exists}" /></td>
							<td class="sCell">${a.fileName?if_exists}</td>
							<td class="sCell">${a.category?if_exists}</td>
							<td class="sCell">${a.folder?if_exists}</td>
							<td class="sCell">${a.uploadTime?if_exists}</td>
						</tr>
					</#list>
					</#if>
					</table>
					</div>
					<@s.component id="page" template="components/page.ftl"> 
							<@s.param name="page" value="%{filePage}" />
							<@s.param name="pageRange" value="%{pageRange}" />
							<@s.param name="param" value="%{action.param}" />
					</@s.component>
				</div>
				<div id="FAVORITE" tabid="FAVORITE" <#if curTab='FAVORITE'>lselected="true"</#if> title="我的收藏">
					<div class="action-div">
						<a id="delFavorite" class="minibutton"><span>删除</span></a>
					</div>
					<div class="sList" >
					<table width="100%" class="sTable" cellpadding="0" cellspacing="0" border="0" >
						<tr>
							<td class="sTh checkbox" ><input class="inputCheckbox allSelect" type="checkbox" id="" name="" /></td>
							<th class="sTh">文档名称</th>
							<th class="sTh">分类</th>
							<th class="sTh">收藏时间</th>
						</tr>
					<#if filePage?exists>
					<#list filePage.result as a>
						<tr class="<#if a_index%2==0>sRow2<#else>sRow1</#if>">
							<td class="sCell" ><input class="inputCheckbox selectItem" type="checkbox" value="${a.id?if_exists}" /></td>
							<td class="sCell">
							<a class="f14" href="${contextPath}/myfile/myfile-showFile.action?fileId=${a.id?if_exists}" title="${a.fileName?if_exists} ">
							${a.fileName?if_exists} </a></td>
							<td class="sCell">${a.category?if_exists}</td>
							<td class="sCell">${a.addFavTime?if_exists}</td>
						</tr>
					</#list>
					</#if>
					</table>
					</div>
					<@s.component id="page" template="components/page.ftl"> 
							<@s.param name="page" value="%{filePage}" />
							<@s.param name="pageRange" value="%{pageRange}" />
							<@s.param name="param" value="%{action.param}" />
					</@s.component>

				</div>

			</div>
		</div>
	</div>
	
	<#include "/pages/include/top.ftl" />
	
	
	<#include "/pages/include/bottom.ftl" />
	
	<input type="hidden" id="tab" value="${curTab}"/>
</div>

</body>

</html>
